package designpattern.template;

/**
 * H1型号车
 *
 * @author bingo
 * @create 2017-12-08 21:19
 **/
public class HumerModelH1 extends HummerModel {

    public HumerModelH1(boolean isAlarm) {
        this.isAlarm = isAlarm;
    }

    @Override
    public void start() {
        System.out.println("H1型号启动了");
    }

    @Override
    public void stop() {
        System.out.println("H1型号停止了");
    }

    @Override
    public void alarm() { System.out.println("H1按喇叭了"); }

    @Override
    public void engineBoom() {
        System.out.println("H1发动机发动了");
    }

}
